package com.tmanager.persistence.dao;


import java.util.List;

import com.tmanager.persistence.entity.IdentifiedEntity;

/**
 * @author Paul A. Shmarev
 */
public interface DAO<T extends IdentifiedEntity> {

    T load(long id);

    T save(T entity);

    void remove(T entity);

    void remove(long id);

    long count();

    List<T> findAll();

    List<T> findAll(int first, int count);
}
